<?php

class BankDetailsPageLink extends Extension {
	function getBankDetails(){
        $page = BankDetailsPage::get()->find('ClassName', 'BankDetailsPage');
        if($page) return $page;
    }
    
    function getBankDetailsLink() {
        $page = $this->getBankDetails();
        if($page) return $page->Link();
    }
}
